% !TEX TS-program = lualatex
% !TEX encoding = UTF-8

% This is a simple template for a LuaLaTeX document using gregorio scores.

\documentclass[letterpaper,12pt]{article} % use larger type; default would be 10pt

% usual packages loading:
%\usepackage{luatextra}
%\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper} % or letterpaper (US) or a5paper or....
\usepackage{gregoriotex} % for gregorio score inclusion

% If you use usual TeX fonts, here is a starting point:
%\usepackage{palatino}
%\input{glyphtounicode} \pdfglyphtounicode{f_f}{FB00} \pdfglyphtounicode{f_f_i}{FB03} \pdfglyphtounicode{f_f_l}{FB04}
%\pdfglyphtounicode{Q_u}{E048} \pdfglyphtounicode{O_e}{0152} \pdfglyphtounicode{o_e}{0153}
%\pdfgentounicode=1
% to change the font to something better, you can install the kpfonts package (if not already installed). To do so
% go open the "TeX Live Manager" in the Menu Start->All Programs->TeX Live 2010
%\def\greinitialformat#1{{\fontsize{37}{37}\selectfont #1}}
%small > footnotesize > scriptsize > tiny
\input{../gsp-spaces}


% my stuff
\usepackage[garamond]{../mypackage}
% end my stuff

\setgrefactor{14}


\marginsize{25pt}{25pt}{25pt}{20pt}
\pagestyle{fancy} % no header or footers
%\renewcommand\headrulewidth{0pt}

% here we begin the document
\begin{document}
\chead{Tones for the \Vbar{}. « Benedicamus Domino ».}
% The title:
%\begin{center}{\Large Magnificat.}\end{center}
% Here we set the space around the initial.
% Please report to http://home.gna.org/gregorio/gregoriotex/details for more details and options
\setspaceafterinitial{0mm plus 0em minus 0em}
\setspacebeforeinitial{0mm plus 0em minus 0em}

% Here we set the initial font. Change 43 if you want a bigger initial.
\def\greinitialformat#1{%
{\fontsize{44}{44}\selectfont #1}%
}

%\renewcommand{\translation}[2][0]{}
\vspace*{-5ex}
{{\centering \bfseries I. — On feasts of the I class.\\}
{\centering \normalsize At 1st Vespers.\\}
\gresetfirstlineaboveinitial{\small \textbf{2.}}{\small \textbf{2.}}
\setgrefactor{14}
\large
\includescore{BenedicamusDomino_1class1stvespers.tex}
\large
\vspace{-2ex}\medskip\vfill
\setgrefactor{14}
{\centering \normalsize At 2nd Vespers.\\}
\gresetfirstlineaboveinitial{\small \textbf{6.}}{\small \textbf{6.}}
\large
\includescore{BenedicamusDomino_1class2ndvespers.tex}
\hspace{3ex}\emph{or:}\\
\gresetfirstlineaboveinitial{\small \textbf{5.}}{\small \textbf{5.}}
\large
\includescore{BenedicamusDomino_1class2ndVespersAlt}}
\vspace{-2ex}\medskip\vfill
{{\centering \bfseries II. — On feasts of the II class.\\}
\large
{\centering \normalsize At 1st Vespers.\\}
\gresetfirstlineaboveinitial{\small \textbf{2.}}{\small \textbf{2.}}
\large
\includescore{BenedicamusDomino_2class1stvespers.tex}
\medskip\vfill
{\centering \normalsize At 2nd Vespers.\\}
\gresetfirstlineaboveinitial{\small \textbf{8.}}{\small \textbf{8.}}
\large
\includescore{BenedicamusDomino_2class2ndvespers.tex}}
\medskip\vfill

{\gresetfirstlineaboveinitial{\small \textbf{2.}}{\small \textbf{2.}}
{\centering \bfseries III. — On feasts of the III class.\\
}
\large
\includescore{BenedicamusDomino_3class.tex}}
\medskip\vfill

{\gresetfirstlineaboveinitial{\small \textbf{1.}}{\small \textbf{1.}}
{\centering \bfseries IV. — On feasts of the Blessed Virgin.\\}
\large
\includescore{BenedicamusDomino_blessedVirgin.tex}}
\medskip\vfill

%{\gresetfirstlineaboveinitial{\small \textbf{1.}}{\small \textbf{1.}}
%{\centering \bfseries V. — On Sundays during the Year\\and Septuagesima, Sexagesima, and Quinquagesima.\\}
%\large
%\includescore{BenedicamusDomino_Sundays.tex}}
%\medskip\vfill

{\gresetfirstlineaboveinitial{\small \textbf{6.}}{\small \textbf{6.}}
{\centering \bfseries VIII. — On Sundays of Advent and Lent.\\}
\large
\includescore{BenedicamusDomino_SundaysOfAdventAndLent.tex}}
\medskip\vfill

{\gresetfirstlineaboveinitial{\small \textbf{7.}}{\small \textbf{7.}}
{\centering \bfseries IX. — On Sundays of Paschal Time.\\}
\large
\includescore{BenedicamusDomino_SundaysOfPaschalTime.tex}}
\end{document}
